package com.wqiuqiu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wqiuqiu.common.PageUtils;
import com.wqiuqiu.gulimall.product.entity.SkuInfoEntity;
import com.wqiuqiu.gulimall.product.entity.SpuInfoEntity;
import com.wqiuqiu.gulimall.product.vo.SpuinfoVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author wqiuqiu
 * @email 18773489795@163.com
 * @date 2023-11-27 20:00:37
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuinfoVo spuInfo);

    void spuUp(Long spuId);

    /**
     * 根据skuId得到spu信息
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuinfoBySkuId(Long skuId);
}

